var elwikiPageEditor; // WORKAROUND.

(function() {
	'use strict';

	rap.registerTypeHandler("elwiki.PageEditor", {

		factory : function(properties) {
			return elwikiPageEditor = new elwiki.PageEditor(properties);
			// var pageeditor = new elwiki.PageEditor(properties);
			// return new wp1editor.PageEditor(properties);
		},

		destructor : "destroy",

		properties : [ "text", "pagelink" ],

		events : [ "save", "cancel", "changed" ],

		methods : []

	});

}());
